package com.avicit.zipkinkafkaesserver.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class JsonUtils {

    public static String BeanToJsonString(Object object) {
        return JSON.toJSONString(object);
    }

    public static Object JsonStringToBean(String jsonString,Class<?> clazz) {
        return JSONObject.parseObject(jsonString, clazz);
    }
}
